<?php
//遍历数组
   $cars=array("学号","姓名","性别");
   echo $cars[0]."</br>";
   echo $cars[1]."</br>";
   echo $cars[2]."</br>";
  
   echo '<br/>';
   echo '<br/>';
   
   $message=array(
       '学号'=>'205404106',
       '姓名'=>'宁文婷',
       '性别'=>'女'
   );
   foreach($message as $key => $value){
       echo $key . '=>' . $value . '<br/>';
   }
   
   echo '<br/>';
   echo '<br/>';
   $lianxi=array(
       'pic'=>'images/1.jpg',
       'name'=>'adsdsss',
       'content'=>'天天好心情'
   );
   foreach($lianxi as $key => $value){
       echo $key.'=>'.$value.'<br/>';
   }
   
   
     
?>
